Repository navigation
fix: use vp exec instead of vpx in build script - #142
Merged
Merged
Conversation
sherwinski
force-pushed
the
sherwin/fix-vpx-build-script
branch
from
June 24, 2026 19:00
de3e717 to
223e2f2
Compare
The build invoked `vpx` for project-local binaries (yellicode, concurrently), but `vpx` is only provided by the global Vite+ installer (and the setup-vp CI action), not by the `vite-plus` npm package. Maintainers who installed `vp` via npm hit `vpx: command not found`. Switch to `vp exec`, which runs binaries from the project's node_modules/.bin and works regardless of how `vp` was installed. Also add a preflight check that fails fast with an actionable message if `vp` or `bun` is missing from PATH.
sherwinski
force-pushed
the
sherwin/fix-vpx-build-script
branch
from
June 24, 2026 19:00
223e2f2 to
1be55c9
Compare
fadi-george
reviewed
Jun 25, 2026
| exit 1 | ||
| } | ||
| done | ||
|
|
Collaborator
There was a problem hiding this comment.
Doesnt seem needed if we already say in README to use vp install
fadi-george
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replace
vpxwithvp execinscripts/build.shso the build works for maintainers who installedvpvia thevite-plusnpm package.Details
Running
bun run build:outputsfailed withbuild.sh: line 26: vpx: command not found.Root cause:
vpxis a globalnpx-style runner that ships only with the official Vite+ installer (and thevoidzero-dev/setup-vpCI action). Thevite-plusnpm package only exposesvp(plusoxlint/oxfmt) — novpx. Maintainers whosevpcame from npm don't havevpx, so the build broke locally even though CI (which usessetup-vp) was fine.Fix:
vpx yellicode→vp exec yellicodevpx concurrently→vp exec concurrentlyvp execruns binaries from the project'snode_modules/.binand is provided by thevite-pluspackage itself, so it works regardless of howvpwas installed. Both binaries (@yellicode/cli,concurrently) are already project dependencies, and using the pinned local version is safer thanvpx's download-on-demand behavior.Also adds a preflight guard at the top of
build.shthat fails fast with an actionable message (pointing to https://vite.plus) ifvporbunis missing from PATH, so future toolchain gaps surface clearly instead of as a cryptic mid-buildcommand not found.Testing
bash -n scripts/build.shpasses;shellcheckreports no issues.vp exec yellicoderuns the code-generation step successfully ("Code generation done").vp exec concurrently --versionresolves (9.2.1).Notes
The same
vpxpattern also appears in thesrc/static/**release workflows and the ngx examplestart.sh; those run in CI wheresetup-vpprovidesvpx, so they're lower risk and intentionally left out of this PR's scope.